<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        *{
            margin: 0 ;
            padding: 0;
            box-sizing: border-box;
        }
        .container{
            margin:0 auto;
            width: 1000px;
        }

        .header{
            height: 200px;
            padding-top: 60px;
            text-align: center;
            background: #dddddd;
        }
        .section{
            text-align: center;
        }
        .section p{
            text-align:initial;
            font-size: 20px;
        }
        .section select{
            width: 200px;
            height: 25px;
            margin-right: 10px;
            border-radius: 2px;
        }
        .section input{
            padding-left: 10px;
            width: 200px;
            height: 25px;
            margin-right: 10px;
            border-radius: 2px;
            border: 1px solid;
        }
        .section button{
            width: 200px;
            height: 28px;
            border-radius: 4px;
            border: 1px solid;
            background: #007BFF;
            color: #ffffff;
        }
        .footer #list li p{
            float: left;
            margin-right:163px;
            width: 170px;
            color:#242729;
        }
        .footer #list li::after{
            display: table;
            content: "";
            clear: both;
        }
        .footer #list li{
            list-style: none;
            border-bottom: 1px solid #E5E8EC;
            padding-top: 5px;
            padding-bottom: 5px;
        }

        .footer #list{
            display: flex;
            flex-direction: column-reverse;
        }
        .footer .list2{
            border-bottom: 1px solid #E5E8EC;
            padding-bottom: 5px;
            padding-top: 5px;
        }
        .footer .list2 p{
            margin-right:163px;
            width: 170px;
            float: left;
        }
        .footer .list2::after{
            display: table;
            content: "";
            clear: both;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>学员信息表<p>1803</p></h1>
        </div>

        <div class="section">
            <p>添加</p>
            <input type="text" id="n" placeholder="姓名">
            <select id="s">
                <option value ="男">男</option>
                <option value ="女">女</option>
            </select>
            <input type="number" id="a" placeholder="年龄">
            <button id="btn">添加</button>

        </div>
        <div class="footer">
            <h2>列表</h2>
            <div class="list2"><p>姓名</p><p>性别</p><p>年龄</p></div>
            <ul id="list">

            </ul>
        </div>
    </div>

<script src="script.js"></script>
</body>
</html>